@extends('layouts.admin')
@section('content')
    {{--面包屑导航开始--}}
    <div class="crumb_warp">
        <i class="fa fa-home"></i><a href="{{url('admin/info')}}">首页</a> &raquo; 全部分类

    </div>
    {{--面包导航结束--}}

    {{--结果页快速搜索框--}}
    <div class="search_wrap">
        <form action="" method="post">
            <table class="search_tab">
                <tr>
                    <th width="120">选择分类：</th>
                    <td>
                        <select onchange="javascript:location.href=this.value;">
                            <option value="1" selected>全部</option>
                            <option value="www.baidu.com" >百度</option>
                        </select>

                    </td>
                    <th width="70">关键字</th>
                    <td><input type="text" name="keywords" placeholder="关键字"></td>
                    <td><input type="submit" name="sub" value="查询"></td>
                </tr>

            </table>

        </form>
    </div>
    {{--结果页快速搜索框end--}}

   {{--搜索结果列表开始 --}}
    <form action="#" method="post">
        {{--快捷导航开始--}}
        <div class="result_wrap">

            <div class="result_content">
                <div class="short_wrap">
                    <a href="#"><i class="fa fa-plus"></i>新增文章</a>
                    <a href="#"><i class="fa fa-recycle"></i>批量删除</a>
                    <a href="#"><i class="fa fa-refresh"></i>更新排序</a>
                </div>
            </div>
        </div>
        {{--快捷导航结束--}}
        <div class="result_wrap">
            <div class="result_content">
              <table class="list-table">
                    <tr>
                        <th class="tc" width="5%">排序</th>
                        <th class="tc" width="5%">ID</th>
                        <th>分类名称</th>


                        <th>标题</th>
                        <th>查看次数</th>
                        <th>操作</th>
                    </tr>

                    {{--循环data--}}
                    @foreach($data as $v)
                      <tr>
                        {{--加入js排序--}}
                          <td class="tc">
                              <input type="text" onchange="changeOrder(this,{{$v->cat_id}})" value="{{$v->cat_order ? $v->cat_order: 0}}" size="2">
                          </td>
                          <td class="tc">{{$v->cat_id}}</td>
                          <td ><a href="#">{{$v->_cat_name}}</a></td>
                          <td >{{$v->cat_title}}</td>
                          <td >{{$v->cat_view}}</td>

                          <td class="tc"><a href="{{url('admin/category/'.$v->cat_id.'/edit')}}">修改</a> | <a href="#">删除</a> </td>
                      </tr>
                    @endforeach

              </table>
            </div>
        </div>


    </form>


    <div class="page_nav">
        <div>
            <a class="first" href="">第一页</a>
            <a class="prev" href="">上一页</a>
            <a class="num" href="">6</a>
            <a class="num" href="">7</a>
            <span class="current">8</span>
            <a class="num" href="">9</a>
            <a class="next" href="">下一页</a>
            <a class="last" href="">最后一页</a>
            <span class="rows">11 条记录</span>
        </div>
    </div>
        <div class="page_list">
            <ul>
                <li class="disabled"><a href="#">&laquo;</a></li>
                <li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
            </ul>

        </div>

    </div>


@endsection